package adapter;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-07-27 10:36
 * @notify
 * @version 1.0
 */

//适配器的第二种实现方式
public class Adaper2 implements Target {

    private Adaptee adaptee;

    public Adaper2(Adaptee adaptee){
        super();
        this.adaptee = adaptee;
    }

    public void  sampleOperation1(){
        adaptee.sampleOperation1();
    }

    public void sampleOperation2(){

    }
}
